package com.hyc.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hyc.dao.WorkSummaryMapper;
import com.hyc.entity.WorkSummary;
import com.hyc.service.IWorkSumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WorkSumServiceImpl implements IWorkSumService {
    @Autowired
    private WorkSummaryMapper workSummaryMapper;

    @DS("slave_1")
    @Override
    public WorkSummary selectByPrimaryKey() {
        return workSummaryMapper.selectByPrimaryKey(2021,"200427001");
    }
}
